<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

function splitAtUpperCase($string){
    return strtolower(preg_replace('/([a-z0-9])?([A-Z])/','$1_$2',$string));
}

$string = 'setIfUnmodifiedSince';
echo splitAtUpperCase($string);

?>
